<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8" contentType="text/html;charset=utf-8" %>
<%@ include file="/common/taglibs.jsp"%>

<head>
    <title>后台用户列表</title>
</head>
<body>
<div style="margin:10px 0px 20px 0px;">
<input type="button" class="button"
        onclick="location.href='<s:url action="edit" includeParams="none" />'" value="新建用户"/>
</div>
<display:table name="userList" class="table" requestURI="" uid="user"  >
    <display:column sortable="true" style="width:40px;"
        paramId="id" paramProperty="id" titleKey="address.id">
        ${user_rowNum} 
    </display:column>
    <display:column property="username" sortable="true" title="登录名" style="width:50px" />
    <display:column property="name" sortable="true" title="用户名" style="width:50px" />
    <display:column property="email" sortable="true" titleKey="user.email" style="width:170px" />
    
    <display:column property="phoneNumber" sortable="true" title="电话" style="width:170px" />
    <display:column property="mobile" sortable="true" title="手机" style="width:170px" />
    <display:column   sortable="false" title="启用" style="width:70px">
	    <c:if test="${user.enabled==true}">
	    	是
	    </c:if>
	    <c:if test="${user.enabled==false}">
	    	<font color="red">否</font>
	    </c:if>
    </display:column>
    
  
    
    <display:column property="roleGroups" sortable="true" title="用户组" style="width:170px" />
    
    <%-- 
    <display:column property="roles" sortable="true" title="权限" style="width:170px" />
    --%>
    
    
    <display:column title="" style="width:170px" >
    	<a href="<s:url action="edit" includeParams="none"/>?userid=${user.id}">编辑</a>
    	<a onclick="return window.confirm('您确定要删除吗？');" href="<s:url action="delete" includeParams="none"/>?userid=${user.id}">删除</a>
    	<a onclick="return window.confirm('您确定要重置密码吗？');" href="<s:url action="xpassword" includeParams="none"/>?userid=${user.id}">重置密码</a>
    </display:column>

</display:table>


</body>